package com.example.demo.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author 9523
 * @version V1.0
 * @Project demo
 * @Package com.example.demo.common.exception
 * @Description: 自定义运行时异常
 * @Date 2024/11/5 13:21
 */
@Getter
@Setter
public class BaseRuntimeException extends RuntimeException{
    private int code;
    private String message;

    public BaseRuntimeException(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
